﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Document_Management.tianche;
namespace Document_Management
{
    public partial class frm天車額定荷重 : Form
    {
        TextBox tx;
        public frm天車額定荷重(TextBox tx)
        {
            InitializeComponent();
            this.tx=tx;
        }
        
        private void 天車額定荷重_Load(object sender, EventArgs e)
        {

            PublicClass.LoadAllNoneProcedure("天車額定荷重", _dtgv額定荷重);
            
        }
      


        private void _dtgv額定荷重_ColumnHeaderMouseClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            PublicClass.setRowNumber(_dtgv額定荷重);
        }

        private void btn_OK_額定荷重_Click(object sender, EventArgs e)
        {
            try
            {
                int r = _dtgv額定荷重.CurrentCell.RowIndex;
                string id = _dtgv額定荷重.Rows[r].Cells[0].Value.ToString();
                tx.Text=id;
                this.Close();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
    }
}
